<h2>Users</h2>

<% if @users.size == 0 %>
No users<br>
<br>
<% end %>

<%= form_tag :action=> :post %>
<table class="tasks">
<% for @user in @users %>
<tr id="tr<%=@user.id%>">
<td><%= text_field("user[]", :name, :size => 20) %></td>
<td><%= text_field("user[]", :login, :size => 7) %></td>
<td><%= link_to_remote(image_tag("delete-page-red.gif", :border => 0), :complete => "eval(request.responseText)",  :url => {:action => :delete, :id => @user.id}, :confirm => "Delete this user ?") %></td>
</tr>
<% end %>
<tr>
<td colspan="3"><input class="button" type="submit" value="Edit"></td>
</tr>
</table>

<%= end_form_tag%>

